
#ifndef _UPDATEPRO_H_

#define _UPDATEPRO_H_


#define BAK_FLASH_START_ADDR        0x00010000
#define BAK_FLASH_START_SECTION     16
#define BAK_FLASH_END_SECTION       17
#define BAK_FLASH_END_ADDR          0x0001ffff

#define CODE_FLASH_START_ADDR       0x5000
#define CODE_FLASH_START_SECTION    5
#define CODE_FLASH_END_SECTION      19
#define CODE_FLASH_END_ADDR         0x0002ffff

#define FILENAME_R "/flow.txt"
//#define FILENAME_R "/flow.bin"

#define BLOCK_SIZE 0x0100

#define ADDR_SIGN_CODE (CODE_FLASH_START_ADDR+0x400)

#define ADDR_VER_CODE (ADDR_SIGN_CODE+4)

#define USER_CODE_FLG 0x12345678


extern void execute_user_code(void);
#endif
